package com.aizuda.encrypt.service.impl;

import com.aizuda.encrypt.service.TransTableService;

import java.util.HashMap;
import java.util.Map;

/**
 * 与佛论禅 密码本转译实现
 *
 * @author nn200433
 * @date 2024-03-22 03:21:42
 */
public class TransTableZenWithBuddhaImpl implements TransTableService {

    private static final Map<String, String> CODE_MAP = new HashMap<String, String>(32) {{
        put("0", "滅");
        put("1", "苦");
        put("2", "婆");
        put("3", "娑");
        put("4", "耶");
        put("5", "陀");
        put("6", "跋");
        put("7", "多");
        put("8", "漫");
        put("9", "都");
        put("a", "殿");
        put("b", "悉");
        put("c", "夜");
        put("d", "爍");
        put("e", "帝");
        put("f", "吉");
        put("A", "摩");
        put("B", "伽");
        put("C", "菩");
        put("D", "提");
        put("E", "尼");
        put("F", "一");

        put("滅", "0");
        put("苦", "1");
        put("婆", "2");
        put("娑", "3");
        put("耶", "4");
        put("陀", "5");
        put("跋", "6");
        put("多", "7");
        put("漫", "8");
        put("都", "9");
        put("殿", "a");
        put("悉", "b");
        put("夜", "c");
        put("爍", "d");
        put("帝", "e");
        put("吉", "f");
        put("摩", "A");
        put("伽", "B");
        put("菩", "C");
        put("提", "D");
        put("尼", "E");
        put("一", "F");
    }};

    @Override
    public Map<String, String> translateMap() {
        return CODE_MAP;
    }

}
